package com.finace.money.data.bean;

import com.finace.money.common.util.StringUtil;

/**
 * Created by zhangpeng on 2017/12/9.
 */

public class TickBean extends BaseEntity{


    /**
     * symbol : jm1409
     * date : 20140630
     * time : 11:11:25.000
     * trade : 805
     * size : 146300
     * bid : 78800
     * ask : 158554
     * bidsize : 287524
     * asksize : 0
     * vol : 0
     * open : 0
     * high : 0
     * low : 0
     * preoi : 0
     * oi : 0
     * presettle : 0
     * change : 0
     */

    private String symbol;//合约名
    private String date;//日期
    private String time;//时间
    private double trade;//最新价
    private String size;//手数
    private double bid;//买一价
    private double ask;//卖一价
    private String bidsize;//买量
    private String asksize;//卖量
    private String vol;//总成交量
    private double open;//开盘价
    private double high;//最高价
    private double low;//最低价
    private String preoi;//昨持仓量
    private String oi;//持仓量
    private double presettle;//昨结算价
    private double change;//增量

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTrade() {
        return StringUtil.getDecimal(trade);
    }

    public void setTrade(double trade) {
        this.trade = trade;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getBid() {
        return StringUtil.getDecimal(bid);
    }

    public void setBid(double bid) {
        this.bid = bid;
    }

    public String getAsk() {

        return StringUtil.getDecimal(ask);
    }

    public void setAsk(double ask) {
        this.ask = ask;
    }

    public String getBidsize() {
        return bidsize;
    }

    public void setBidsize(String bidsize) {
        this.bidsize = bidsize;
    }

    public String getAsksize() {
        return asksize;
    }

    public void setAsksize(String asksize) {
        this.asksize = asksize;
    }

    public String getVol() {
        return vol;
    }

    public void setVol(String vol) {
        this.vol = vol;
    }

    public double getOpen() {
        return open;
    }

    public void setOpen(double open) {
        this.open = open;
    }

    public String getHigh() {
        return StringUtil.getDecimal(high);
    }

    public void setHigh(double high) {
        this.high = high;
    }

    public String getLow() {
        return StringUtil.getDecimal(low);
    }

    public void setLow(double low) {
        this.low = low;
    }

    public String getPreoi() {
        return preoi;
    }

    public void setPreoi(String preoi) {
        this.preoi = preoi;
    }

    public String getOi() {
        return oi;
    }

    public void setOi(String oi) {
        this.oi = oi;
    }

    public String getPresettle() {
        return StringUtil.getDecimal(presettle);
    }

    public void setPresettle(double presettle) {
        this.presettle = presettle;
    }

    public String getChange() {
        return StringUtil.getDecimal(change);
    }

    public void setChange(double change) {
        this.change = change;
    }
}
